package com.rentcars.entity;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
public class Cars { //车辆信息
    private String carid;

    private String carcode;

    private String carcolor;

    private Date buydate;

    private String enginenum;

    private String framenum;

    private String cartype;

    private String carbrand;

    private String carbrandtype;

    private String picid;

    private Integer isauto;

    private String enginesize;

    private Integer seatnum;

    private String facetype;

    private Double totalmile;

    private Integer hadillegal;

    private String insurer;

    private String insurancetime;

    private String yearcheck;

    private String maintaintime;

    private Double maintainmile;

    private Integer hadaccident;

    private Integer isbadrepair;

    private Integer isfakemile;

    private Integer safelevel;

    private Double carprice;

    private String evaluater;

    private Integer carstate;

    private String deptname;

    private Date addtime;

    private Date contractdate;

    private String carremark;

    private String carcity;

    private String phone;

    private String carOrderTime;

    private Clientuser clientuser;

    public Cars(String carid,Integer carstate){
        this.carid =carid;
        this.carstate=carstate;
    }

    public Clientuser getClientuser() {
        return clientuser;
    }

    public void setClientuser(Clientuser clientuser) {
        this.clientuser = clientuser;
    }

    public String getCarOrderTime() {
        return carOrderTime;
    }

    public void setCarOrderTime(String carOrderTime) {
        this.carOrderTime = carOrderTime;
    }

    public String getCarid() {
        return carid;
    }

    public void setCarid(String carid) {
        this.carid = carid == null ? null : carid.trim();
    }

    public String getCarcode() {
        return carcode;
    }

    public void setCarcode(String carcode) {
        this.carcode = carcode == null ? null : carcode.trim();
    }

    public String getCarcolor() {
        return carcolor;
    }

    public void setCarcolor(String carcolor) {
        this.carcolor = carcolor == null ? null : carcolor.trim();
    }

    public Date getBuydate() {
        return buydate;
    }

    public void setBuydate(Date buydate) {
        this.buydate = buydate;
    }

    public String getEnginenum() {
        return enginenum;
    }

    public void setEnginenum(String enginenum) {
        this.enginenum = enginenum == null ? null : enginenum.trim();
    }

    public String getFramenum() {
        return framenum;
    }

    public void setFramenum(String framenum) {
        this.framenum = framenum == null ? null : framenum.trim();
    }

    public String getCartype() {
        return cartype;
    }

    public void setCartype(String cartype) {
        this.cartype = cartype == null ? null : cartype.trim();
    }

    public String getCarbrand() {
        return carbrand;
    }

    public void setCarbrand(String carbrand) {
        this.carbrand = carbrand == null ? null : carbrand.trim();
    }

    public String getCarbrandtype() {
        return carbrandtype;
    }

    public void setCarbrandtype(String carbrandtype) {
        this.carbrandtype = carbrandtype == null ? null : carbrandtype.trim();
    }

    public String getPicid() {
        return picid;
    }

    public void setPicid(String picid) {
        this.picid = picid == null ? null : picid.trim();
    }

    public Integer getIsauto() {
        return isauto;
    }

    public void setIsauto(Integer isauto) {
        this.isauto = isauto;
    }

    public String getEnginesize() {
        return enginesize;
    }

    public void setEnginesize(String enginesize) {
        this.enginesize = enginesize == null ? null : enginesize.trim();
    }

    public Integer getSeatnum() {
        return seatnum;
    }

    public void setSeatnum(Integer seatnum) {
        this.seatnum = seatnum;
    }

    public String getFacetype() {
        return facetype;
    }

    public void setFacetype(String facetype) {
        this.facetype = facetype == null ? null : facetype.trim();
    }

    public Double getTotalmile() {
        return totalmile;
    }

    public void setTotalmile(Double totalmile) {
        this.totalmile = totalmile;
    }

    public Integer getHadillegal() {
        return hadillegal;
    }

    public void setHadillegal(Integer hadillegal) {
        this.hadillegal = hadillegal;
    }

    public String getInsurer() {
        return insurer;
    }

    public void setInsurer(String insurer) {
        this.insurer = insurer == null ? null : insurer.trim();
    }

    public String getInsurancetime() {
        return insurancetime;
    }

    public void setInsurancetime(String insurancetime) {
        this.insurancetime = insurancetime;
    }

    public String getYearcheck() {
        return yearcheck;
    }

    public void setYearcheck(String yearcheck) {
        this.yearcheck = yearcheck;
    }

    public String getMaintaintime() {
        return maintaintime;
    }

    public void setMaintaintime(String maintaintime) {
        this.maintaintime = maintaintime;
    }

    public Double getMaintainmile() {
        return maintainmile;
    }

    public void setMaintainmile(Double maintainmile) {
        this.maintainmile = maintainmile;
    }

    public Integer getHadaccident() {
        return hadaccident;
    }

    public void setHadaccident(Integer hadaccident) {
        this.hadaccident = hadaccident;
    }

    public Integer getIsbadrepair() {
        return isbadrepair;
    }

    public void setIsbadrepair(Integer isbadrepair) {
        this.isbadrepair = isbadrepair;
    }

    public Integer getIsfakemile() {
        return isfakemile;
    }

    public void setIsfakemile(Integer isfakemile) {
        this.isfakemile = isfakemile;
    }

    public Integer getSafelevel() {
        return safelevel;
    }

    public void setSafelevel(Integer safelevel) {
        this.safelevel = safelevel;
    }

    public Double getCarprice() {
        return carprice;
    }

    public void setCarprice(Double carprice) {
        this.carprice = carprice;
    }

    public String getEvaluater() {
        return evaluater;
    }

    public void setEvaluater(String evaluater) {
        this.evaluater = evaluater == null ? null : evaluater.trim();
    }

    public Integer getCarstate() {
        return carstate;
    }

    public void setCarstate(Integer carstate) {
        this.carstate = carstate;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname == null ? null : deptname.trim();
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Date getContractdate() {
        return contractdate;
    }

    public void setContractdate(Date contractdate) {
        this.contractdate = contractdate;
    }

    public String getCarremark() {
        return carremark;
    }

    public void setCarremark(String carremark) {
        this.carremark = carremark == null ? null : carremark.trim();
    }

    public String getCarcity() {
        return carcity;
    }

    public void setCarcity(String carcity) {
        this.carcity = carcity == null ? null : carcity.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    @Override
    public String toString() {
        return "Cars{" +
                "carid='" + carid + '\'' +
                ", carcode='" + carcode + '\'' +
                ", carcolor='" + carcolor + '\'' +
                ", buydate=" + buydate +
                ", enginenum='" + enginenum + '\'' +
                ", framenum='" + framenum + '\'' +
                ", cartype='" + cartype + '\'' +
                ", carbrand='" + carbrand + '\'' +
                ", carbrandtype='" + carbrandtype + '\'' +
                ", picid='" + picid + '\'' +
                ", isauto=" + isauto +
                ", enginesize='" + enginesize + '\'' +
                ", seatnum=" + seatnum +
                ", facetype='" + facetype + '\'' +
                ", totalmile=" + totalmile +
                ", hadillegal=" + hadillegal +
                ", insurer='" + insurer + '\'' +
                ", insurancetime=" + insurancetime +
                ", yearcheck=" + yearcheck +
                ", maintaintime=" + maintaintime +
                ", maintainmile=" + maintainmile +
                ", hadaccident=" + hadaccident +
                ", isbadrepair=" + isbadrepair +
                ", isfakemile=" + isfakemile +
                ", safelevel=" + safelevel +
                ", carprice=" + carprice +
                ", evaluater='" + evaluater + '\'' +
                ", carstate=" + carstate +
                ", deptname='" + deptname + '\'' +
                ", addtime=" + addtime +
                ", contractdate=" + contractdate +
                ", carremark='" + carremark + '\'' +
                ", carcity='" + carcity + '\'' +
                ", phone='" + phone + '\'' +
                ", carOrderTime='" + carOrderTime + '\'' +
                ", clientuser=" + clientuser +
                '}';
    }
}